package softserve.vgolosh;

import java.io.IOException;
import java.sql.SQLException;
import java.util.Scanner;

import softserve.vgolosh.utils.PropertiesHelper;
import softserve.vgolosh.utils.PropertyNotFoundException;

public class MainClass {
	public static void main(String[] args) throws IOException,
			PropertyNotFoundException {
		Scanner scanner = new Scanner(System.in);
		JdbcConnect jdbc;
		String working = PropertiesHelper.WORKING_DIR;
		working += PropertiesHelper.getProperty("currentFolder")
				+ "\\working\\";
		JdbcConnect.URL += PropertiesHelper.getProperty("currentDB");
		try {
			jdbc = new JdbcConnect();
			jdbc.addClients(working);
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			System.err.println("No driver");
		} catch (SQLException e) {
			e.printStackTrace();
		}
		scanner.nextLine();
	}
}
